package com.shop.controller;


import com.shop.common.result.util.ResultModel;
import com.shop.entity.DistrictDo;
import com.shop.service.DistrictService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author 靳 旺
 * @since 2021-01-29
 */
@RestController
@Api(tags = "地区前端控制器")
@RequestMapping("/district-do")
public class DistrictController {

    @Autowired
    private DistrictService districtService;

    @ApiOperation(value = "查询所有地区",notes = "靳旺")
    @PostMapping("selectAllDistrict")
    public ResultModel selectAllDistrict()throws Exception{
        return  districtService.selectAllDistrict();
    }


}
